Ext.define('PJ.view.messagemanagement.ReplyView', {
	extend: 'AM.default.DefaultWindowForm',
	alias: ['widget.replyView'],
	requires: ['AM.default.DefaultDateField', 
	           'AM.default.DateTime',
	           'AM.default.jsonp.DefaultSubmitJsonp',
	           'PJ.view.messagemanagement.RestoredMessageList',
	           'AM.default.DefaultDateField'],

	modal: true,// 开启不允许点击其他组件
	frame: true,
	notEdit: true,
	layout: 'form',
	isSame: false,
	width:400,
	height:200,
	autoHeight: true,

	initComponent: function(){
    	var me = this;
    	me.items= [{
    		defaults: {
    			labelAlign: 'right',
    			labelWidth: 80,
    			columnWidth: .98,
    			padding:"5 0 0 0",
    			readOnly:me.isView
    		},
    		border: false,
    		xtype: "container",
    		layout: 'column',
    		items: [{
            	xtype: 'textarea',
                fieldLabel: "回复内容",
                name:  "replyValue",
	            readOnly:true,
    			height: 100
            }]
    	}];
    	this.buttons = [{
            text: '关闭',
            scope: this,
            handler: function(button, event){
                var win = button.up('window');
                win.grid.store.load();
                win.close();
            }
        }];
		this.callParent(arguments);
	}
});